.class public abstract Lcom/hierynomus/smbj/transport/c;
.super Ljava/lang/Object;
.source "PacketReader.java"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field protected a:Ljava/io/InputStream;

.field private b:Lcom/hierynomus/smbj/transport/b;


# direct methods
.method public constructor <init>(Ljava/io/InputStream;Lcom/hierynomus/smbj/transport/b;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/hierynomus/smbj/transport/c;->a:Ljava/io/InputStream;

    .line 3
    iput-object p2, p0, Lcom/hierynomus/smbj/transport/c;->b:Lcom/hierynomus/smbj/transport/b;

    return-void
.end method

.method private b()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/hierynomus/smbj/transport/c;->a()Lcom/hierynomus/smbj/smb2/d;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/hierynomus/smbj/transport/c;->b:Lcom/hierynomus/smbj/transport/b;

    invoke-interface {v1, v0}, Lcom/hierynomus/smbj/transport/b;->a(Lcom/hierynomus/smbj/smb2/d;)V

    return-void
.end method


# virtual methods
.method protected abstract a()Lcom/hierynomus/smbj/smb2/d;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;
        }
    .end annotation
.end method

.method public run()V
    .locals 2

    .line 1
    :goto_0
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->isInterrupted()Z

    move-result v0

    if-nez v0, :cond_0

    .line 2
    :try_start_0
    invoke-direct {p0}, Lcom/hierynomus/smbj/transport/c;->b()V
    :try_end_0
    .catch Lcom/hierynomus/smbj/transport/TransportException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    :catch_1
    move-exception v0

    .line 4
    iget-object v1, p0, Lcom/hierynomus/smbj/transport/c;->b:Lcom/hierynomus/smbj/transport/b;

    invoke-interface {v1, v0}, Lcom/hierynomus/smbj/transport/b;->a(Ljava/lang/Throwable;)V

    :cond_0
    :goto_1
    return-void
.end method
